package cn.com.sbell.vss.csg.vap.util;

public class VsInfo {
	
	private String vsDeviceId;
    private String vsIp;
    private Integer vsPort;//after NAT
    private String front_type;
    public VsInfo(String vsDeviceId,String vsIp,Integer vsPort,String front_type)
    {
    	this.vsDeviceId = vsDeviceId;
    	this.vsIp = vsIp;
    	this.vsPort = vsPort;
    	this.front_type=front_type;
    }
    
	public String getVsDeviceId() {
		return vsDeviceId;
	}

	public void setVsDeviceId(String vsDeviceId) {
		this.vsDeviceId = vsDeviceId;
	}

	public String getVsIp() {
		return vsIp;
	}

	public void setVsIp(String vsIp) {
		this.vsIp = vsIp;
	}

	public Integer getVsPort() {
		return vsPort;
	}

	public void setVsPort(Integer vsPort) {
		this.vsPort = vsPort;
	}

	
	public String getFront_type() {
		return front_type;
	}

	public void setFront_type(String front_type) {
		this.front_type = front_type;
	}

	public boolean equals(Object object){
		if(object == null) 
			return false;
		if(this == object) 
			return true;
		if(!(object instanceof VsInfo))
			return false;
		VsInfo vsInfo = (VsInfo)object;
		return this.vsDeviceId==null ? vsInfo.vsDeviceId==null : this.vsDeviceId.equals(vsInfo.vsDeviceId);
	}
	
	public int hashCode(){
		return this.vsDeviceId.hashCode();
	}
	
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("vsIp:" + vsIp);
		sb.append("\nvsPort:" + vsPort);
		sb.append("\nvsDeviceId:" + vsDeviceId);
		sb.append("\nfront_type:"+front_type);
		return sb.toString();
	}
}
